package com.payment.channel.vo;

import com.fast.common.xml.XmlElement;
import com.fast.common.xml.XmlRoot;

@XmlRoot(name = "xml")
public class WechatPayCallbackRequest {

	@XmlElement(name="return_code")
	private String returnCode;
	
	@XmlElement(name="return_msg")
	private String returnMsg;
	
	@XmlElement(name = "appid")
	private String appid;

	@XmlElement(name = "mch_id")
	private String mchId;
	@XmlElement(name = "mch_id")
	private String subMchId;
	@XmlElement(name = "mch_id")
	private String deviceInfo;
	
	@XmlElement(name = "nonce_str")
	private String nonceStr;

	@XmlElement(name = "sign")
	private String sign;

	@XmlElement(name = "result_code")
	private String resultCode;
	
	@XmlElement(name = "err_code")
	private String errCode;
	@XmlElement(name = "err_code_des")
	private String errCodeDes;
	@XmlElement(name = "openid")
	private String openid;
	@XmlElement(name = "is_subscribe")	
	private String isSubscribe;
	@XmlElement(name = "sub_openid")
	private String subOpenid;
	@XmlElement(name = "sub_is_subcrib")
	private String subIsSubcrib;

	@XmlElement(name = "trade_type")
	private String tradeType;

	@XmlElement(name = "bank_type")
	private String bankType;
	
	/**
	 * 交易金额，单位为分
	 */
	@XmlElement(name = "total_fee")
	private String totalFee;
	@XmlElement(name = "fee_type")
	private String feeType;
	@XmlElement(name = "cash_fee")
	private String cashFee;
	@XmlElement(name = "cash_fee_type")
	private String cashFeeType;
	@XmlElement(name = "transaction_id")
	private String transactionId;
	@XmlElement(name = "attach")
	private String attach;
	@XmlElement(name = "time_end")
	private String timeEnd;

	@XmlElement(name = "out_trade_no")
	private String outTradeNo;

	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getSubMchId() {
		return subMchId;
	}

	public void setSubMchId(String subMchId) {
		this.subMchId = subMchId;
	}

	public String getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(String deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	public String getNonceStr() {
		return nonceStr;
	}

	public void setNonceStr(String nonceStr) {
		this.nonceStr = nonceStr;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}

	public String getErrCodeDes() {
		return errCodeDes;
	}

	public void setErrCodeDes(String errCodeDes) {
		this.errCodeDes = errCodeDes;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getIsSubscribe() {
		return isSubscribe;
	}

	public void setIsSubscribe(String isSubscribe) {
		this.isSubscribe = isSubscribe;
	}

	public String getSubOpenid() {
		return subOpenid;
	}

	public void setSubOpenid(String subOpenid) {
		this.subOpenid = subOpenid;
	}

	public String getSubIsSubcrib() {
		return subIsSubcrib;
	}

	public void setSubIsSubcrib(String subIsSubcrib) {
		this.subIsSubcrib = subIsSubcrib;
	}

	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	public String getTotalFee() {
		return totalFee;
	}

	public void setTotalFee(String totalFee) {
		this.totalFee = totalFee;
	}

	public String getFeeType() {
		return feeType;
	}

	public void setFeeType(String feeType) {
		this.feeType = feeType;
	}

	public String getCashFee() {
		return cashFee;
	}

	public void setCashFee(String cashFee) {
		this.cashFee = cashFee;
	}

	public String getCashFeeType() {
		return cashFeeType;
	}

	public void setCashFeeType(String cashFeeType) {
		this.cashFeeType = cashFeeType;
	}

	public String getTransactionId() {
		return transactionId;
	}

	public void setTransactionId(String transactionId) {
		this.transactionId = transactionId;
	}

	public String getAttach() {
		return attach;
	}

	public void setAttach(String attach) {
		this.attach = attach;
	}

	public String getTimeEnd() {
		return timeEnd;
	}

	public void setTimeEnd(String timeEnd) {
		this.timeEnd = timeEnd;
	}

	public String getOutTradeNo() {
		return outTradeNo;
	}

	public void setOutTradeNo(String outTradeNo) {
		this.outTradeNo = outTradeNo;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("WechatPayCallbackRequest [returnCode=");
		builder.append(returnCode);
		builder.append(", returnMsg=");
		builder.append(returnMsg);
		builder.append(", appid=");
		builder.append(appid);
		builder.append(", mchId=");
		builder.append(mchId);
		builder.append(", subMchId=");
		builder.append(subMchId);
		builder.append(", deviceInfo=");
		builder.append(deviceInfo);
		builder.append(", nonceStr=");
		builder.append(nonceStr);
		builder.append(", sign=");
		builder.append(sign);
		builder.append(", resultCode=");
		builder.append(resultCode);
		builder.append(", errCode=");
		builder.append(errCode);
		builder.append(", errCodeDes=");
		builder.append(errCodeDes);
		builder.append(", openid=");
		builder.append(openid);
		builder.append(", isSubscribe=");
		builder.append(isSubscribe);
		builder.append(", subOpenid=");
		builder.append(subOpenid);
		builder.append(", subIsSubcrib=");
		builder.append(subIsSubcrib);
		builder.append(", tradeType=");
		builder.append(tradeType);
		builder.append(", bankType=");
		builder.append(bankType);
		builder.append(", totalFee=");
		builder.append(totalFee);
		builder.append(", feeType=");
		builder.append(feeType);
		builder.append(", cashFee=");
		builder.append(cashFee);
		builder.append(", cashFeeType=");
		builder.append(cashFeeType);
		builder.append(", transactionId=");
		builder.append(transactionId);
		builder.append(", attach=");
		builder.append(attach);
		builder.append(", timeEnd=");
		builder.append(timeEnd);
		builder.append(", outTradeNo=");
		builder.append(outTradeNo);
		builder.append("]");
		return builder.toString();
	}
 	

}